]> dgit.raspbian.org Git - gnome-shell.git/commit
WindowOverlay: fix title sizing
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Dec 2012 23:42:40 +0000 (00:42 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 18 Dec 2012 15:00:54 +0000 (16:00 +0100)
commit944762ac830cb5401d5447da55ed667212f7ee71
treebeec5b3551fd17150aa94ac407fd0d571794dd31
parentc66068c4356669ffb0d6705d1a056fa518a5235a
WindowOverlay: fix title sizing

After the first time the title was placed, we were setting its width,
thus forcing get_preferred_width() to return that as the minimum and
natural width.
To workaround that, explicitly reset the width to -1, -1, causing
StLabel->get_preferred_width() to be called, which would give us a meaningful
value for minimum and natural width.

https://bugzilla.gnome.org/show_bug.cgi?id=688234
js/ui/workspace.js